export  function formateServiceItemData(data){
  const enumServiceType = ['普', '专', '其', '调'];
  const enumServiceTypeClass = ['primary', 'yellow', 'red', 'primary'];
  return data.map(item => {
      const { serviceType, unitPrice, displayUnit, advance, bedNo } = item;
      item.serviceType_ = enumServiceType[serviceType];
      item.bedNo_ = bedNo ? bedNo + '床' : '';
      item.serviceTypeClass = 'y-bg-' + enumServiceTypeClass[serviceType];
      item.feeText = `${unitPrice}元/${displayUnit} 预付 : ${advance}元`;
      return item;
    })
}